package _1._0._0._127.ormrpc.services.WSTestFacade;

public class WSTestFacadeSrvProxyProxy implements _1._0._0._127.ormrpc.services.WSTestFacade.WSTestFacadeSrvProxy {
  private String _endpoint = null;
  private _1._0._0._127.ormrpc.services.WSTestFacade.WSTestFacadeSrvProxy wSTestFacadeSrvProxy = null;
  
  public WSTestFacadeSrvProxyProxy() {
    _initWSTestFacadeSrvProxyProxy();
  }
  
  public WSTestFacadeSrvProxyProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSTestFacadeSrvProxyProxy();
  }
  
  private void _initWSTestFacadeSrvProxyProxy() {
    try {
      wSTestFacadeSrvProxy = (new _1._0._0._127.ormrpc.services.WSTestFacade.WSTestFacadeSrvProxyServiceLocator()).getWSTestFacade();
      if (wSTestFacadeSrvProxy != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSTestFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSTestFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSTestFacadeSrvProxy != null)
      ((javax.xml.rpc.Stub)wSTestFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public _1._0._0._127.ormrpc.services.WSTestFacade.WSTestFacadeSrvProxy getWSTestFacadeSrvProxy() {
    if (wSTestFacadeSrvProxy == null)
      _initWSTestFacadeSrvProxyProxy();
    return wSTestFacadeSrvProxy;
  }
  
  public java.lang.String sayHello(java.lang.String name) throws java.rmi.RemoteException, testfacade.client.WSInvokeException{
    if (wSTestFacadeSrvProxy == null)
      _initWSTestFacadeSrvProxyProxy();
    return wSTestFacadeSrvProxy.sayHello(name);
  }
  
  
}